Skip to content

merge: sync upstream main (a1af7583) into fork - #75

Merged
xiaoyumuxi merged 30 commits into
mainfrom
sync/upstream-a1af7583
Nov 28, 2026
Merged

xiaoyumuxi merged 30 commits into
mainfrom
sync/upstream-a1af7583

Conversation

@xiaoyumuxi

Copy link
Copy Markdown

把上游 vivaui/viva main 同步进 Lithe-IDEA/Lithe-viva main:上游从 fork 已包含的 0ec90b26 前进到 a1af7583,共 29 个提交(含 v0.6.10 发布说明)。为 Lithe 桌面端 0.8.21 发版前同步。

带进来的上游改动

冲突

四处冲突,fork 一侧都是上游自己的旧版本,没有我们的补丁,全部取上游:

  • gfx/input.go、base/scroll_test.go、gfx/scroll_test.go:上游 ca01419e 改为按 ScrollPage(视口的 7/8)翻页。解决后三个文件与上游逐字相同。
  • internal/platform/windows/watermark_windows.go(add/add):fork 的 f031d0df 压缩带入了旧版水印,取上游 97cdc2bd 的版本。

验证(macOS Apple Silicon,go1.27.4)

  • go build ./...
  • GOOS=windows GOARCH=amd64 go build ./...、GOOS=windows GOARCH=arm64 go build ./...
  • GOOS=linux CGO_ENABLED=0 go vet ./base/ ./ui/ ./components/ ./gfx/
  • go test ./base/... ./ui/... ./components/... ./gfx/... ./markdown/... ./app/... -count=1:只有 ui/inputnumber 的 TestWarmPaintAllocatesNothing 失败,这是 go1.27.4 下已知的分配测试噪声,上游 main 上同样失败,与本次同步无关。
  • 真实窗口:没有跑,Lithe 升级固定版本的 PR 里再验。

合入方式:Create a merge commit(不 squash)。

t8y2 and others added 30 commits November 27, 2026 17:50
A button's focus ring was painted as a disc under its surface, which the
button's own fill covered; a ghost, link or translucent-filled button left
the disc visible through its middle, so a keyboard-focused ghost button
read as a filled square. Paint the halo as a line whenever the look paints
no opaque fill, in the canvas button, the button group and the frame's ring.

PaintButtonSurface is now the surface half of BeginButton's paint, next to
PaintButtonContent, so a page that draws a button's content itself paints a
button surface instead of a copy of this logic.

Motty's tools window takes this surface in its own commit.
Windows reports the "one screen per notch" setting as a screen of the window,
so a list, menu or dialog smaller than the window moved by the window's screen
and skipped the rows in between. The scroll event now says how many screens it
is, and each scroll region moves that many of its own screens, following whole
visible rows where it scrolls rows.

ScrollState, menus, selects, text areas, the code editor, the code diff, the
time picker and the editable tabs resolve their own page; a wheel that is not
set to screens keeps its old distance.

Refs: t8y2/motty#1672
Squash of vivaui#487 with its installer templates regenerated; applied directly because the contributor's fork rejects maintainer pushes.
Follow-up to vivaui#483: the packager already writes NSMicrophoneUsageDescription from [mac.info] and signs with the [mac] entitlements file, so only the contract was missing.
…lable

CredWriteW can fail with ERROR_NOT_FOUND on a logon whose credential set
cannot be placed. It was mapped to ErrSecretNotFound, which StoreSecret
never promises, so an application storing a key on first use surfaced the
sentinel as its save error. A write now reports ErrSecretStoreUnavailable;
read and delete keep ErrSecretNotFound.

Paired with the Motty report t8y2/motty#1513, where saving a password failed
with the key is not in the secret store.
The site test requires every example program to appear in a guide. The notifications and watermark examples had none, which left main's website job red. Both guides get a section and the example, in English and Chinese, expanded from examples/guides so the shown code is the code that runs.
When the first Direct3D device is made, the render subsystem reports
the driver behind it (hardware or WARP), the adapter as DXGI names it,
the feature level and whether DirectComposition or the window's own
swap chain presents, once per process. A DirectComposition that could
not be made is reported as a warning with its error instead of leaving
the fallback silent.

TestNativeStructureABI now checks that DXGI_ADAPTER_DESC keeps its ABI.
Companion Motty commit routes the stream into motty.log.
A wheel set to one screen per notch moved a region by its whole viewport, so
the rows at the edge it left were gone at the next page and a reader lost
their place. A page is now gfx.ScrollPage of the viewport, seven eighths of it
as browsers page, rounded down to whole rows, and ScrollState's PageUp and
PageDown take the same page instead of their own nine tenths.

Every region that resolves a page notch goes through StepYIn and StepXIn, so
the framework's regions and Motty's own painted ones keep the same overlap;
Motty's companion commit adapts its tests to it.

Refs: t8y2/motty#1794
# Conflicts:
#	base/scroll_test.go
#	gfx/input.go
#	gfx/scroll_test.go
#	internal/platform/windows/watermark_windows.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.